package javaSE;

/**
 * @ClassName calculator
 * @Author lupeibei
 * @create 2022/5/29 5:29 PM
 */
public class calculator {
    public  int add(int i,int j) {
        return i+j;
    }
    public  int  minus(int i,int j) {
        return i-j;
    }
    public int multi(int i,int j) {
        return i*j;
    }
    public int divided(int i,int j) {
        return i/j;
    }


    public static void main(String[] args) {
        calculator calculator=new calculator();
//        calculator.add(1,2);
        System.out.println("两数相减为："+calculator.minus(1,2));
        System.out.println("两数相加为："+calculator.add(3,4));
        System.out.println("两数相乘为："+calculator.multi(2,8));
        System.out.println("两数相除为："+calculator.divided(9,3));




    }
}
